<%-- 
    Document   : addAdressForm
    Created on : 11 mai 2011, 10:48:11
    Author     : simon
--%>

<%-- Affichage du formulaire d'ajout d'adresse --%>
<div id="addForm">
    <h2>Ajouter une adresse :</h2>
    <form method="post" action="<c:url value='/addAdress' />">
        <table>

            <tr>
                <td><label for="street"><fmt:message key="street"/>:</label></td>
                <td class="inputField" colspan="3">
                    <input type="text"
                           size="80"
                           maxlength="45"
                           id="street"
                           name="street">
                </td>
            </tr>

            <tr>
                <td><label for="zipcode"><fmt:message key="zipcode"/>:</label></td>
                <td class="inputField">
                    <input type="text"
                           size="31"
                           maxlength="45"
                           id="zipcode"
                           name="zipcode">
                </td>

                <td><label for="city"><fmt:message key="city"/>:</label></td>
                <td class="inputField">
                    <input type="text"
                           size="31"
                           maxlength="45"
                           id="city"
                           name="city">
                </td>
            </tr>

            <tr>
                <td><label for="country"><fmt:message key="country"/>:</label></td>
                <td class="inputField">
                    <select name="country">
                        <c:forEach items="${countryList}" var="country">
                            <option value="${country.idcountry}">${country.name}</option>
                        </c:forEach>
                    </select>
                </td>

                <td colspan="2"><input type="submit" value="Ajouter" /></td>
            </tr>
        </table>
    </form>
</div>
